#ifndef GLWIDGET_H
#define GLWIDGET_H

#include <QGLWidget>

#include <QGLShaderProgram>

class GLWidget : public QGLWidget
{
public:
    explicit GLWidget(QWidget *parent = 0);
    
protected:

    void initializeGL();
    void paintGL();
    void resizeGL(int width, int height);

private:
    void loadShader(GLenum type, QByteArray const &shaderSrc);
    QGLShaderProgram program;
};

#endif // GLWIDGET_H
